<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="root">
<table>
    <tbody>
    <tr is="row"></tr>
    <tr is="row"></tr>
    <tr is="row"></tr>
    </tbody>
</table>
</div>
<script>
    Vue.component('row',{
        //错误的data:{
        //     content:'this is a row'
        // },
            data:function () {
                return {
                    content:'this is a row'
                }
            },
        template:'<tr><td>{{content}}</td></tr>'
    })

    var vm = new Vue({
        el:'#root',



    })














</script>
</body>
</html>